package com.multi.thread.chapter02.demo06;

public class ObjectService {
	
	public void test() {
		try {
			synchronized (this) {
				System.out.println("begin time = " + System.currentTimeMillis());
				Thread.sleep(2000);
				System.out.println("end time = " + System.currentTimeMillis());
			}
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

}
